package io.lkt.modules.sys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.lkt.commons.dynamic.datasource.annotation.DataSource;
import io.lkt.modules.sys.dao.BBrandShieldDao;
import io.lkt.modules.sys.entity.BBrandShieldEntity;
import io.lkt.modules.sys.service.BBrandShieldService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service("bBrandShieldService")
public class BBrandShieldServiceImpl extends ServiceImpl<BBrandShieldDao, BBrandShieldEntity> implements BBrandShieldService {
    @Override
    @DataSource("logdb")
    public List<BBrandShieldEntity> getList(Map<String, Object> map) {
        return baseMapper.getList(map);
    }

    @Override
    @DataSource("logdb")
    public Integer getListTotal(Map<String, Object> map) {
        return baseMapper.getListTotal(map);
    }

    @Override
    @DataSource("logdb")
    public BBrandShieldEntity queryByBrand(Integer brandId, String gzhCode) {
        return baseMapper.queryByBrand(brandId, gzhCode);
    }

    @Override
    @DataSource("logdb")
    public void saveObject(BBrandShieldEntity entity) {
        baseMapper.saveObject(entity);
    }

    @Override
    public void deleteById(Integer id) {
        baseMapper.deleteObjectById(id);
    }
}
